//
//  LLboughtContentTableViewCell.m
//  LoveLove
//
//  Created by 达迩科技 on 2019/4/9.
//  Copyright © 2019 wkf. All rights reserved.
//

#import "LLboughtContentTableViewCell.h"

@implementation LLboughtContentTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView{
    self.headImage = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, 40, 70)];
    self.headImage.image = [UIImage imageNamed:@"课程图片"];
    self.headImage.layer.masksToBounds = YES;
    self.headImage.contentMode = UIViewContentModeScaleAspectFill;
    [self.contentView addSubview:self.headImage];
    
    self.titleLabel = [LLInitBaseViewTool labelWithText:@"流浪地球" textColor:LLColorRGB(0) font:14 textAlignment:NSTextAlignmentLeft];
    self.titleLabel.frame = CGRectMake(70, 25, LLScreenWidth-85, 14);
    [self.contentView addSubview:self.titleLabel];
    
    self.subtitleLabel = [LLInitBaseViewTool labelWithText:@"2019.1.11 9:20" textColor:LLColorRGB(127) font:12 textAlignment:NSTextAlignmentLeft];
    self.subtitleLabel.frame = CGRectMake(70, 58, LLScreenWidth-85, 12);
    [self.contentView addSubview:self.subtitleLabel];
}

-(void)configCellData:(NSDictionary *)dic{
    self.titleLabel.text = dic[@"new_title"];
    self.subtitleLabel.text = dic[@"time"];
//    NSURL *ImagePath1 =[NSURL URLWithString: dic[@"is_family"]];
//    [self.headImage sd_setImageWithURL:ImagePath1 placeholderImage:[UIImage imageNamed:@"default_user"]];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
